package modul

import "gitee.com/yutiandou/wdtools/wdstruct"

var BaseMsgList = wdstruct.NewObjectPool(10000,new(BaseMsg))

type BaseMsg struct {
	Message string `json:"message"`
	Code string `json:"code"`
	Data interface{} `json:"data"`
}
func GetBaseMsg()*BaseMsg{
	return BaseMsgList.Get().(*BaseMsg)
}
func GiveBaseMsg(rec *BaseMsg){
	BaseMsgList.Give(rec)
}
func (r * BaseMsg)New()interface{}{
	return new(BaseMsg)
}
func (r * BaseMsg)Recycle(obj  interface{}){
}




type WXLoginTwo struct {
	WID string `json:"wid"`
	QrCodeUrl string `json:"qrCodeUrl"`
}

type WXLoginThree struct {
	NickName string `json:"nickName"`
	HeadUrl string `json:"headUrl"`
	WID string `json:"wId"`
	WCID string `json:"wcId"`
}
type ContactList struct {
	Public []ContactInfo `json:"public"`
	Friend []ContactInfo `json:"friend"`
	Groups []ContactInfo `json:"group"`
}
type ContactInfo struct {
	UserName string `json:"userName"`
	AliasName string `json:"aliasName"`
	NickName string `json:"smallHead"`
	BigHead string `json:"bigHead"`
	SmallHead string `json:"smallHead"`
	Sex int `json:"sex"`
	Signature string `json:"signature"`
	Country string `json:"country"`
	Province string `json:"province"`
	City string `json:"city"`
}